package com.major.sort.selectsorting;

public class Min {

    static int min(int[] arr){
        int min = 0;
        for (int i = 0; i < arr.length - 1; i++) {
            min = Math.min(arr[i],arr[i+1]);
        }

        return min;
    }
}
